project(ksvgeditor_controller)

find_package(Qt5 REQUIRED COMPONENTS Widgets Core Gui)

set(UI_FILES
)
set(RCC_FILES
)
set(HEADER_FILES
kmaincontroller.h
ktoolcontroller.h
kdrawingcontroller.h
kdrawsettingcontroller.h
kfilecontroller.h
)
set(CPP_FILES
kmaincontroller.cpp
ktoolcontroller.cpp
kdrawingcontroller.cpp
kdrawsettingcontroller.cpp
kfilecontroller.cpp
)

SET(CMAKE_INCLUDE_CURRENT_DIR ON)
SET(CMAKE_AUTOMOC ON)
SET(CMAKE_AUTORCC ON)
SET(CMAKE_AUTOUIC ON)

source_group("Form Files" FILES ${UI_FILES})
source_group("Resource Files" FILES ${RCC_FILES})
source_group("Header Files" FILES ${HEADER_FILES})
source_group("Source Files" FILES ${CPP_FILES})

add_library(${PROJECT_NAME} STATIC ${HEADER_FILES} ${CPP_FILES} ${UI_FILES} ${RCC_FILES})

target_include_directories(${PROJECT_NAME} PUBLIC
    ${CMAKE_CURRENT_SOURCE_DIR}
)

target_link_libraries(${PROJECT_NAME} PUBLIC
    ksvgeditor_core
    ksvgeditor_ui
    ksvgeditor_config
    ksvgeditor_svgdocument
)

target_link_libraries(${PROJECT_NAME} PUBLIC
    Qt5::Widgets
    Qt5::Gui
    Qt5::Core
)

set_target_properties(${PROJECT_NAME} PROPERTIES FOLDER "Libraries/Controller")